package org.example.sale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @className: HeibeiAgent
 * @Description:
 * @Author: wangyifei
 * @Date: 2025/3/12 10:41
 */
public class HeibeiAgent implements Salable{
    private static Logger logger = LoggerFactory.getLogger(HeibeiAgent.class);
    private Factory factory;

    @Override
    public void sale() {
        if ( factory == null) {
            factory = new Factory(); // 延迟加载
        }
        // 接待客户
        System.out.println("接待客户");
        factory.sale();
        //售后服务
        System.out.println("售后服务");
    }
}
